<%
	import java.util.UUID;
	import com.db.Config
	
	//获取需要发送的Email，用户名称,发送标题,发送的内容
	def  message =[
			sendto:request.getParameter('sendto'), 
			username:request.getParameter('username'),
			subject:request.getParameter('subject'), 
			content:request.getParameter('content'),
			key:UUID.randomUUID().toString()
			]
	message<<[state:1]<<[_table:Config.NEED_SEND_EMAIL_MESSAGE]
	com.db.MongoDb.insert(message)
	println message
%>
 